Git Config
Configures user information used across all local repositories.
git config --global user. name "username"
git config --global user. email "email"Git Init
Create an empty Git repository or reinitialize an existing one
git initGit Clone
Clone a repository into a new directory
git clone [url]Git Add
Add file contents to the index
git add file-name
git add *
git add .Git Commit
Record changes to the repository
git commit -m "Commit message"Git Push
Update remote refs along with associated objects
git push origin masterGit Status
Show the working tree status
git statusGit Remote
Connect to the remote repository
git remote add origin masterGit Branch
List, create, or delete branches
git branchGit Pull Request
Fetch from and integrate with another repository or a local branch
git pullGit Merge Request
Join two or more development histories together
git mergeGit Log
Show commit logs
git logGit Reset
Reset current HEAD to the specified state
git resetGit Stash
Stash the changes in a dirty working directory away
git stashGit Tag
Create, list, delete or verify a tag object signed with GPG
git tagGit Checkout
Switch branches or restore working tree files
git checkoutGit Rebase
Reapply commits on top of another base tip
git rebaseGit Fetch
Download objects and refs from another repository
git fetchGit Diff
Show changes between commits, commit and working tree, etc
git diffGit Archive
Create an archive of files from a named tree
git archiveGit Submodule
Initialize, update or inspect submodules
git submoduleGit Bisect
Use binary search to find the commit that introduced a bug
git bisectGit Cherry-Pick
Apply the changes introduced by some existing commits
git cherry-pickGit Revert
Revert some existing commits
git revertGit Clean
Remove untracked files from the working tree
git cleanGit Rm
Remove files from the working tree and from the index
git rmGit Show
Show various types of objects
git showGit Shortlog
Summarize git log output
git shortlogGit Describe
Show the most recent tag that is reachable from a commit
git describeGit Reflog
Manage reflog information
git reflogGit Filter-Branch
Rewrite branches
git filter-branchGit Rev-List
Lists commit objects in reverse chronological order
git rev-listGit Instaweb
Instantly browse your working repository in gitweb
git instaweb